# Project:	Mr Cloud
# Author:	gong_libin
# Date:		2013_05_09

CC ?= g++
CFLAGS ?= -g -Wall -fPIC

MR_ENV ?= $(shell pwd)/../..
MR_INC ?= $(MR_ENV)/inc
MR_SRC ?= $(MR_ENV)/src
MR_OBJ ?= $(MR_SRC)/MrObj

OBJECTS =				\
	MrDb.o				\
	MrLog.o				\
	MrMd5.o				\
	MrSet.o				\
	MrAcbm.o			\
	MrConf.o			\
	MrFile.o			\
	MrPipe.o			\
	MrTime.o			\
	MrPool.o			\
	MrBloom.o			\
	MrQueue.o			\
	MrCdLock.o			\
	MrMtLock.o			\
	MrRwLock.o			\
	MrThread.o			\
	MrMember.o

all: $(OBJECTS) install

$(OBJECTS): %.o: %.cpp
	$(CC) -c $(CFLAGS) -I$(MR_INC) $< -o $@

install:
	cp $(OBJECTS) $(MR_OBJ)/.

clean:
	rm -rf $(OBJECTS)
